from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from changliang import LUJING
import time
from selenium.webdriver.support.ui import Select

wd = webdriver.Chrome(service=Service(LUJING))
wd.implicitly_wait(2)
wd.get('https://www.byhy.net/cdn2/files/selenium/test2.html')
time.sleep(1)

s = Select(wd.find_element(By.ID,'ss_single'))
for i in s.all_selected_options:
    print(i.text)
s.select_by_index(1)
for i in s.all_selected_options:
    print(i.text)
wd.get('https://www.baidu.com')
wd.execute_script("setTimeout(function(){debugger},3000)")

time.sleep(5)